﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    CodeBehind="sanpham.aspx.cs" Inherits="Shop_Phone.sanpham" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentSlide" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div>
        <div class="span9">
            <div id="wproduct-list" class="box-brand">
                <div class="header2">
                    <span class="title2"><span><a href="">Sản phẩm </a><a href="" style="float: right;
                        color: #004370; font: normal 11px arial; text-transform: none; margin: 4px -4px;"
                        title="Xem thêm Sản phẩm nổi bật">Xem thêm &gt;</a> </span></span>
                </div>
                <div class="w-product-list clearfix content-product" style="border: 1px solid #e1e1e2;
                    border-top: none;">
                    <ul class="product-list">
                        <asp:Repeater ID="Rptranphamnoibat" runat="server" DataSourceID="SqlDataSource1">
                            <ItemTemplate>
                                <li id="main_<%# Eval("masanpham")%>" class="itm">
                                    <div>
                                        <div id="productImageWrapID_<%# Eval("masanpham")%>">
                                            <div class="div-image-product">
                                                <a href="" title="">
                                                    <img class="image-product" id="img_<%# Eval("masanpham")%>" src="<%# Eval("hinhanh")%>"
                                                        alt="" title="<%# Eval("tensanpham")%>">
                                                </a>
                                            </div>
                                            <div class="div-detail-product">
                                                <h3>
                                                    <a style="text-transform: uppercase;" href="">
                                                        <%# Eval("tensanpham")%></a></h3>
                                                <p>
                                                    Giá: <span>
                                                        <%# Eval("giasanpham")%>
                                                        đ </span>
                                                </p>
                                                <p>
                                                    Giá ĐL: <span style="font-weight: normal"><a href="">Đăng nhập</a></span></p>
                                                <p>
                                                    Tình trạng:
                                                    <%# tinhtranghang(Eval("soluong"))%>
                                                </p>
                                                <p>
                                                    <input class="pquantityx" id="quantity_<%# Eval("masanpham")%>" type="text" size="1"
                                                        value="<%# Eval("soluong")%>">
                                                    <a href='sanpham.aspx=add&amp;id=<%# Eval("masanpham")%>&amp;name=<%# Eval("tensanpham")%>&amp;price=<%# Eval("giasanpham")%>'
                                                        class="bt-dathang add2cart" style="vertical-align: middle;" data-id="<%# Eval("masanpham")%>">
                                                        Chọn mua</a>
                                                </p>
                                            </div>
                                        </div>
                                    </div>
                                </li>
                            </ItemTemplate>
                        </asp:Repeater>
                        <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:shop_phone %>"
                            SelectCommand="SELECT top 18 [masanpham], [tensanpham], [giasanpham], [phukiendikem], [hinhanh], [soluong] FROM [sanpham]  inner join danhmucsanpham on sanpham.madanhmuc = danhmucsanpham.madanhmuc WHERE (danhmucsanpham.madanhmuc = @madanhmuc)">
                            <SelectParameters>
                                <asp:QueryStringParameter Name="madanhmuc" QueryStringField="ID" Type="String" />
                            </SelectParameters>
                        </asp:SqlDataSource>
                    </ul>
                </div>
            </div>
        </div>
    </div>
</asp:Content>
